package cn.ldw.utils;

import cn.ldw.pojo.User;

public class UserThreadLocal {

    public static final ThreadLocal<User> context = new ThreadLocal<>();

    public static void set(User user) {
        context.set(user);
    }

    public static User get() {
        return context.get();
    }

    public static void remove() {
        context.remove();
    }
}
